FROM   ubuntu:14.04
MAINTAINER root   <root.db.root@gmail.com>


RUN   cd /etc/apt  &&  mv  /etc/apt/sources.list   /etc/apt/sources.list.bak
ADD   sources.list   /etc/apt/sources.list

RUN  apt-get  update  -y  && \
     apt-get  install  openssh-server   openssh-client  -y  && \
     mkdir   /var/run/sshd
RUN  echo 'root:jidian123' |chpasswd
RUN  useradd   mcc  &&  echo 'mcc:jidian123' |chpasswd

EXPOSE  22
CMD   ["/usr/sbin/sshd","-D"]
